﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="[tblName]List.aspx.cs" Inherits="wuyeOTO.Admin.{subFolder}.[tblName]List" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>[tblTitle]</title>
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<link href="/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/jquery.pagination.js"></script>
<script type="text/javascript" src="/js/layer/layer.js"></script>
</head>
<body class="sarchbody">
    <form id="form1" runat="server">
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">[tblTitle]</a></li>
    </ul>
    </div>
    
<div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
    <ul class="seachform1">
        <li><label> 类型名称：</label>
            <asp:TextBox ID="txtQryName" runat="server"  CssClass="scinput1" ></asp:TextBox></li>
    
    </ul>
    
    
    <ul class="seachform1">
    <li class="sarchbtn"><label> </label>
           <asp:Button ID="btnQuery"  CssClass="scbtn" runat="server" Text=" 查询 "  OnClick="btnQuery_Click" OnClientClick="javascript:$('#loading').show();"  />
           <input type="hidden" runat="server" id="inputGo2page" /> 
          <input type="hidden" runat="server" id="txtQryId" />
         <input name="" type="button" class="scbtn2" value="添加"  onclick="javascript: return openLayer('[tblName]Edit.aspx','添加','400px','250px');" />
        <%--<input name="" type="button" class="scbtn1" value="更多条件"/>   <input name="" type="button" class="scbtn2" value="导出"/>--%>

    </li>  
    </ul>
     </div>
    <div style="clear:both"></div>

<asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel[tblName]List" runat="server" RenderMode="Inline" UpdateMode="Conditional">
        <ContentTemplate>
        <div id="DivPromptMessage" runat="server">
            <asp:Literal ID="litPromptMessage" runat="server"></asp:Literal>
        </div>
     <asp:Repeater runat="server" ID="rpt[tblName]List">
        <HeaderTemplate>
   <table class="tablelist">
    	<thead>
    	<tr>
	              <th>编号</th>
[loop start]
	              <th style="width:160px;" >[fldTitle]</th>
[loop end]
	              <th>操作</th>
             </tr>
         </thead>
        <tbody>
         </HeaderTemplate>
          <ItemTemplate>
               <tr id="tr<%# Eval("id")%>"> 
	              <td class="lft" style="width:60px"><%# Eval("id")%></td>
[loop start]
	              <td class="lft"><%# Eval("[fldName]")%></td>
[loop end]
	              <td class="operate">	
	                   <a href="[tblName]Edit.aspx?id=<%# Eval("id") %>" class="tablelink" onclick="javascript:return openLayer(this.href,'修改','400px','250px');"><img src="/images/t02.png" />修改 </a> 
                       <a href="[tblName]Edit.aspx?id=<%# Eval("id") %>" onclick="javascript:return openDelLayer(this.href);"  class="tablelink"> <img src="/images/t03.png" />删除</a>
                      
	              </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
       </tbody>
            </table>
        </FooterTemplate>
    </asp:Repeater>
 
    <div class="divPager">
         <asp:Literal ID="litPager" runat="server" ></asp:Literal>
                <input type="hidden" runat="server" id="inputPageByButton" value="1" /> 
       </div>
            <div class="layui-layer layui-anim layui-layer-loading " id="loading" style="left: 50%;top: 50%; display:none">
                <div class="layui-layer-content layui-layer-loading0"></div>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnQuery" EventName="Click" />
        </Triggers>
</asp:UpdatePanel>
<div class="pagination ue-clear"></div>

</div>
    
   
   


    </form>
</body>
<script type="text/javascript">
    pagerInit(<%= currentPage %>,<%= totalRecord %>,<%=pageSize %>);

</script>
</html>





